<?php
 Session_Start () ;
 If (!$_SESSION ["repertoire_config"]) { Header ("Location: ../../") ; }
 Include ("../../include/garennes.cfg") ;
 Include ("../../include/init.php") ;
 Include ("../../include/module_absences.cfg") ;
 Include ("../../include/module_absences.php") ;
 Include ("../include/config.inc") ;
 verif_droits ($droit_courant, $_SESSION ["code"]) ;
 
 $type = var_courante ("type", 0, 0) ;
 $etape = var_courante ("etape", 0, 0) ;

 Switch ($type)
  {
   // Format XML
    Case 1 : Switch ($etape)
              {
	       Case  2 : Include ("./imp_abs_xml_2.php") ;
	                 Break ;
	       Case  3 : Include ("./imp_abs_xml_3.php") ;
	                 Break ;
	       Case  4 : Include ("./imp_abs_xml_4.php") ;
	                 Break ;
	       Default : Include ("./imp_abs_xml_1.php") ;
	                 Break ;
	      }
             Break ;
   // Format DBF (GEP)
    Case 0 :
   Default : Switch ($etape)
              {
	       Case  2 : Include ("./imp_abs_gep_2.php") ;
	                 Break ;
	       Case  3 : Include ("./imp_abs_gep_3.php") ;
	                 Break ;
	       Case  4 : Include ("./imp_abs_gep_4.php") ;
	                 Break ;
	       Default : Include ("./imp_abs_gep_1.php") ;
	                 Break ;
	      }
             Break ;
  }
?>